home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / Plug-in - WireFrame Renderer / SR_ClipUtilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.9 KB  |  73 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        SR_ClipUtilities.h                                         **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:                                                              **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1995 Apple Computer, Inc.  All rights reserved.          **
  11.  **                                                                          **
  12.  **                                                                          **
  13.  *****************************************************************************/
  14. #ifndef    SR_ClipUtilities_h
  15. #define SR_ClipUtilities_h
  16.  
  17. #include "SR.h"
  18.  
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif    /* __cplusplus */
  23.         
  24. /******************************************************************************
  25.  **                                                                             **
  26.  **                                Clip Utilities                                  **
  27.  **                                                                             **
  28.  *****************************************************************************/
  29.  
  30. void SR_ClipPlanesInDC(
  31.     TQ3Matrix4x4                 *frustumToDC, 
  32.     float                         *clipPlanesInDC);
  33.  
  34.  
  35. /******************************************************************************
  36.  **                                                                             **
  37.  **                                Other Routines                                 **
  38.  **                                                                             **
  39.  *****************************************************************************/
  40.  
  41. void SRPointList_WDivide(
  42.     TQ3RationalPoint4D     *in, 
  43.     unsigned long         numVertices, 
  44.     unsigned long         sizeOfIn);
  45.  
  46. void SRPointList_ClipTestVertices(
  47.     TQ3RationalPoint4D     *deviceVertices,  
  48.     unsigned long         *clipFlags, 
  49.     long                 numVertices, 
  50.     float                 *clipPlanesInDC, 
  51.     long                 *clipFound, 
  52.     long                 *allOut, 
  53.     unsigned long         sizeOfIn);
  54.         
  55. void SRPointList_ClipVertices(
  56.     TQ3RationalPoint4D     *vertices, 
  57.     long                 sizeOfVertex,
  58.     TQ3RationalPoint4D     *clipVertices, 
  59.     long                 sizeOfClippedVertex,
  60.     unsigned long         *clipFlags, 
  61.     long                *clippedVerticesFlags,
  62.     long                 numVertices, 
  63.     long                 *numClippedVertices,
  64.     float                 *clipPlanes,
  65.     long                mode);
  66.  
  67.  
  68. #ifdef __cplusplus
  69. }
  70. #endif    /* __cplusplus */
  71.  
  72. #endif  /*  SR_ClipUtilities_h  */
  73.